import {
    request
} from "./request";
import qs from "qs";

//  根据公司id获取操作员
export function getOperatorList(obj) {
    return request({
        url: "ScOperator/getOperatorList",
        method: "post",
        data: qs.stringify(obj)
    });
}
//  根据公司id添加操作员
export function addOperator(obj) {
    return request({
        url: "ScOperator/addOperator",
        method: "post",
        data: qs.stringify(obj)
    });
}
//  根据操作人id上下线操作人状态
export function updateOperatorStaus(obj) {
    return request({
        url: "ScOperator/updateOperatorStaus",
        method: "post",
        data: qs.stringify(obj)
    });
}
//  根据公司id获取身份列表
export function getIdentityList(obj) {
    return request({
        url: "ScOperator/getIdentityList",
        method: "post",
        data: qs.stringify(obj)
    });
}
//  根据操作员id和身份id分配身份
export function updateIdentity(obj) {
    return request({
        url: "ScOperator/updateIdentity",
        method: "post",
        data: qs.stringify(obj)
    });
}

//  根据公司id获取全部推广员申请
export function getMenuListByCompanyId(obj) {
    return request({
        url: "ScOperator/getMenuListByCompanyId",
        method: "post",
        data: qs.stringify(obj)
    });
}
//  根据公司id新增身份
export function addIdentityList(obj) {
    return request({
        url: "ScOperator/addIdentity",
        method: "post",
        data: qs.stringify(obj)
    });
}
//  根据公司id新增身份
export function getIdentityMenuById(obj) {
    return request({
        url: "scUser/getIdentityMenuById",
        method: "post",
        data: qs.stringify(obj)
    });
}


export function updateIdentityById(obj) {
    return request({
        url: "ScOperator/updateIdentityById",
        method: "post",
        data: qs.stringify(obj)
    });
}